<layout name='Layout/layout_page' />

	<ol class="breadcrumb">
		<li><a href="<{:U('Message/index')}>">站内信</a></li>
      	<li class="active">会员注册时自动发送站内信</li>
    </ol>
	
	<form id="ajaxForm" class="form-horizontal form-validata" action="<{:U('Message/welcome')}>" method="post">

		<div class="form-group">
			<label class="col-md-1 control-label" for="title">标题</label>
			<div class="col-md-6">
				<input type="text" name="title" id="title" class="form-control" value="<{$list['title']}>" data-rule-required="true">
			</div>
		</div>


		<div class="form-group">
			<label class="col-md-1 control-label" for="keywords">内容</label>
			<div class="col-md-6">
				<textarea name="content" id="container"><{$list['content']}></textarea>
				<script type="text/javascript" src="<{:C('UE_DIR')}>/my.config.js"></script>
				<script type="text/javascript" src="<{:C('UE_DIR')}>/ueditor.all.js"></script>
				<script type="text/javascript" src="<{:C('UE_DIR')}>/lang/zh-cn/zh-cn.js"></script>
				<script type="text/javascript">
				var defPath = "<{:C('UPLOAD_PATH')}>";
				window.UEDITOR_CONFIG.imagePath= defPath;  //插入编辑器中图片路径修正
				window.UEDITOR_CONFIG.filePath= defPath; //插入编辑器中文件路径修正
				window.UEDITOR_CONFIG.scrawlPath= defPath; //涂鸦默认路径
				var editor = UE.getEditor('container');
				</script>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="sort">状态</label>
			<div class="col-md-11">
				<label class="radio-inline">
					<input type="radio" name="status" value="1" <eq name="list['status']" value="1">checked</eq>> 启用
				</label>
				<label class="radio-inline">
					<input type="radio" name="status" value="0" <eq name="list['status']" value="0">checked</eq>> 禁用
				</label>
			</div>
		</div>


		<div class="form-group">
			<div class="col-md-11 col-sm-offset-1">
				<button type="submit" class="btn btn-info"><i class="icon-edit icon-white"></i> 保存</button>
			</div>
		</div>
		<input type="hidden" name="dosubmit" />
		<input type="hidden" name="id" value="<{$list['id']}>" />
	</form>
	
	
	
	
</div>
<input type="hidden" id="menu_action" value="message" />